home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm)))) TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- TTTTmmmmCCCCSSSSTTTTeeeexxxxtttt - the CSText widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- xxxxmmmmCCCCSSSSTTTTeeeexxxxtttt pathName [options]
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This is the _t_c_l binding to the Motif Compound String Text (CSText)
- widget. This widget is only available from Motif 2.0 on.
-
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS
- The class name for resource files is XXXXmmmmCCCCSSSSTTTTeeeexxxxtttt.... Resources are inherited
- from TTTTmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee,,,, TTTTmmmmCCCCoooorrrreeee.... Methods are inherited from TTTTmmmmCCCCoooorrrreeee....
-
- THE REST OF THIS REFERS TO TEXT - UPDATE
-
-
- RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS
- The new resources are
-
- autoShowCursorPosition
- cursorPosition
- editable
- editMode br marginHeight
- marginWidth
- maxLength
- source
- topCharacter
- value
- valueWCS
- verifyBell
-
- eeeeddddiiiittttaaaabbbblllleeee
- The values for this resource are
- true
- false
- eeeeddddiiiittttMMMMooooddddeeee The values for this resource are
- single_line_edit
- multi_line_edit
-
-
- MMMMEEEETTTTHHHHOOOODDDDSSSS
- New methods for this class are
- activateCallback
- focusCallback
- gainPrimaryCallback
- losePrimaryCallback
- losingFocusCallback
- modifyVerifyCallback
- motionVerifyCallback
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm)))) TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm))))
-
-
-
- valueChangedCallback
- clearSelection
- copy
- cut
- disableRedisplay
- enableRedisplay
- findString
- getEditable
- getInsertionPosition
- getSelection
- getSelectionPosition
- getString
- getSubstring
- getTopCharacter
- insert
- paste
- replace
- remove
- scroll
- setAddMode
- setEditable
- setHighlight
- setInsertionPosition
- setSelection
- setSource
- setString
- setTopCharacter
- showPosition
-
-
- cccclllleeeeaaaarrrrSSSSeeeelllleeeeccccttttiiiioooonnnn
- clears the primary selection
-
-
- ccccooooppppyyyy copies the primary selection to the clipboard
-
-
- ccccuuuutttt copies the primary selection to the clipboard and deletes the
- selected text.
-
-
- ffffiiiinnnnddddSSSSttttrrrriiiinnnngggg _s_t_a_r_t _s_t_r_i_n_g _d_i_r_e_c_t_i_o_n _p_o_s_i_t_i_o_n
- searches for the _s_t_r_i_n_g in the specified _d_i_r_e_c_t_i_o_n starting from the
- given _s_t_a_r_t. The possible values of _d_i_r_e_c_t_i_o_n are ffffoooorrrrwwwwaaaarrrrdddd or
- bbbbaaaacccckkkkwwwwaaaarrrrdddd. The method returns ttttrrrruuuueeee or ffffaaaallllsssseeee if the string is
- found or not found. If it is found, the location of the first
- character of the string (counting from 0) is returned in the tcl
- variable _p_o_s_i_t_i_o_n.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm)))) TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm))))
-
-
-
- ggggeeeettttEEEEddddiiiittttaaaabbbblllleeee
- returns ttttrrrruuuueeee or ffffaaaallllsssseeee indicating whether or not the widget can be
- edited.
-
-
- ggggeeeettttIIIInnnnsssseeeerrrrttttiiiioooonnnnPPPPoooossssiiiittttiiiioooonnnn
- returns the location of the insertion cursor.
-
-
- ggggeeeettttLLLLaaaassssttttPPPPoooossssiiiittttiiiioooonnnn
- returns the last position in the text.
-
-
- ggggeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn
- returns the value of the primary selection.
-
-
- ggggeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnPPPPoooossssiiiittttiiiioooonnnn _l_e_f_t _r_i_g_h_t
- returns ttttrrrruuuueeee f the widget owns the primary selection, else returns
- ffffaaaallllsssseeee. The left and right positions of the primary selection are
- returned in the tcl variables
- _l_e_f_t and _r_i_g_h_t.
-
-
- ggggeeeettttSSSSttttrrrriiiinnnngggg
- returns the value in the widget.
-
-
- ggggeeeettttSSSSuuuubbbbssssttttrrrriiiinnnngggg _s_t_a_r_t _n_u_m__c_h_a_r_s _b_u_f_f_e_r
- stores the substring in the tcl variable _b_u_f_f_e_r. The method returns
- ssssuuuucccccccceeeeddddeeeedddd, ffffaaaaiiiilllleeeedddd or ttttrrrruuuunnnnccccaaaatttteeeedddd.
-
-
- ggggeeeettttTTTTooooppppCCCChhhhaaaarrrraaaacccctttteeeerrrr
- returns the position of the first character displayed.
-
-
- iiiinnnnsssseeeerrrrtttt _p_o_s_i_t_i_o_n _t_e_x_t
- inserts the _t_e_x_t into the widget at _p_o_s_i_t_i_o_n.
-
-
- ppppaaaasssstttteeee
- insert the clipboard selection.
-
-
- rrrreeeeppppllllaaaacccceeee _f_r_o_m _t_o _v_a_l_u_e
- replaces the text with the new _v_a_l_u_e.
-
-
- ssssccccrrrroooollllllll _l_i_n_e_s
- scroll the text widget. A negative number of lines scrolls downward.
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm)))) TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm))))
-
-
-
- sssseeeettttAAAAddddddddMMMMooooddddeeee _b_o_o_l_e_a_n
- sets the add mode of the text widget.
-
-
- sssseeeettttEEEEddddiiiittttaaaabbbblllleeee _b_o_o_l_e_a_n
- set the editable state of the widget.
-
-
- sssseeeettttHHHHiiiigggghhhhlllliiiigggghhhhtttt _l_e_f_t _r_i_g_h_t _m_o_d_e
- set the highlight mode for the text between the positions to one of
- the _h_i_g_h_l_i_g_h_t values of
- nnnnoooorrrrmmmmaaaallll sssseeeelllleeeecccctttteeeedddd sssseeeeccccoooonnnnddddaaaarrrryyyy____sssseeeelllleeeecccctttteeeedddd.
-
-
- sssseeeettttIIIInnnnsssseeeerrrrttttiiiioooonnnnPPPPoooossssiiiittttiiiioooonnnn _p_o_s_i_t_i_o_n
- set the location of the insertion cursor.
-
-
- sssseeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn _f_i_r_s_t _l_a_s_t
- set the primary selection of the text to between the positions.
-
-
- sssseeeettttSSSSoooouuuurrrrcccceeee _w_i_d_g_e_t _t_o_p _p_o_s_i_t_i_o_n
- sets the source of the current text widget to be the same as
- _w_i_d_g_e_t and specifies where the top display and where the insertion
- cursor are.
-
-
- sssseeeettttSSSSttttrrrriiiinnnngggg _v_a_l_u_e
- sets the text value.
-
-
- sssseeeettttTTTTooooppppCCCChhhhaaaarrrraaaacccctttteeeerrrr _t_o_p
- sets the top position of the text display.
-
-
- sssshhhhoooowwwwPPPPoooossssiiiittttiiiioooonnnn _p_o_s_i_t_i_o_n
- force the text at the _p_o_s_i_t_i_o_n to be displayed.
-
-
- CCCCAAAALLLLLLLLBBBBAAAACCCCKKKK SSSSUUUUBBBBSSSSTTTTIIIITTTTUUUUTTTTIIIIOOOONNNNSSSS
- The substitutions supported for this class are
- %%%%rrrreeeeaaaassssoooonnnn - the additional values are
- activate
- focus
- gain_primary
- lose_primary
- modifying_text_value
- moving_insert_cursor
- value_changed
- %%%%ddddooooiiiitttt - the tcl variable to set to true or false to allow changes
- %%%%ccccuuuurrrrrrrrIIIInnnnsssseeeerrrrtttt - current position of the insertion cursor
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm)))) TTTTmmmmTTTTCCCCSSSSeeeexxxxtttt((((3333TTTTmmmm))))
-
-
-
- %%%%nnnneeeewwwwIIIInnnnsssseeeerrrrtttt - position to which cursor move is attempted
- %%%%ssssttttaaaarrrrttttPPPPoooossss - itcl variable with starting position of text to modify
- %%%%eeeennnnddddPPPPoooossss - tcl variable with end position of text to modify
- %%%%ppppttttrrrr - tcl variable with text to be inserted
- %%%%lllleeeennnnggggtttthhhh - tcl variable with length of text to be inserted
-
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Jan Newmarch, University of Canberra
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-